package com.clt.projectsen.common.api;

/**
 * @program: asfbbs
 * @description: 枚举常用API操作码
 * @packagename: com.asoulfan.asfbbs.api
 * @author: Cscar
 * @date: 2021-07-26 01:37
 **/
public enum ResultCode implements IErrorCode {
    SUCCESS(000, "success"),
    FAILED(010, "failed"),
    VALIDATE_FAILED(555, "参数检验失败"),
    OUT_OF_RANGE(101, "超出时间范围");
    private long code;
    private String message;

    private ResultCode(long code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public long getCode() {
        return code;
    }
    @Override
    public String getMessage() {
        return message;
    }
}
